import React, { Component } from "react";
import { Breadcrumb } from "antd";
class BreadcrumbCmp extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <Breadcrumb>
        {this.props.BreadcrumbList.map((item, index) => {
          return (
            <Breadcrumb.Item style={index === 0 ? { fontWeight: 700, fontSize: 16, color: "#333" } : null} key={index}>
              {item}
            </Breadcrumb.Item>
          );
        })}
      </Breadcrumb>
    );
  }
}

export default BreadcrumbCmp;
